package com.xiaozhengkeji.colastartboot.oauth;

import cn.dev33.satoken.action.SaTokenActionDefaultImpl;
import cn.hutool.core.util.IdUtil;
import org.springframework.stereotype.Component;

/**
 * 继承sa-token行为Bean默认实现, 重写部分逻辑
 */
@Component
public class MySaTokenAction extends SaTokenActionDefaultImpl {
    @Override
    public String createToken(Object loginId, String loginKey) {
        return IdUtil.randomUUID();
    }
}
